package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.goods.entity.goods.GoodsBrand;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品品牌表 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface GoodsBrandService extends IService<GoodsBrand> {

    GoodsBrand getById(Long id);


    boolean save(GoodsBrand entity);

    boolean updateById(GoodsBrand entity);

    IPage getPage(IPage page, Wrapper queryWrapper, String key);

    boolean deleteById(Long id);

    List<GoodsBrand> getByIds(List<Long> ids, String key);

    /**
     * 查询某个分类下的所有品牌信息
     */
    List<Map<String, Object>> getGoodsBrandsByCateId(Long cateId);

    List<Map<String, Object>> getAllGoodsBrand();

}
